<?php
// +----------------------------------------------------------------------
// | ThinkCMF [ WE CAN DO IT MORE SIMPLE ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013-2017 http://www.thinkcmf.com All rights reserved.
// +----------------------------------------------------------------------
// | Author: Dean <zxxjjforever@163.com>
// +----------------------------------------------------------------------
// API 模板文件，可以复制
namespace api\resource\controller;

use think\Db;
use think\Request;
use think\Validate;
use cmf\controller\RestBaseController;

class Biao39Controller extends RestBaseController
{


    public function one($data)
    {

        //查 这个表的数据
        @$new_data = @$data[0]['content'];
        if (empty($new_data)) {
            return '';
        }
        @$radio1_one =  $new_data->radio1 == 1 ?"checked" :"";
        @$radio1_two =  $new_data->radio1 == 2 ?"checked" :"";

       $html = '
       <div style="width: 650px;margin: 0 auto;">
            <div style="font-size: 16px;font-weight: 600;margin-bottom: 15px;">一、主要情况</div>
            <table border="1" cellspacing="0px" cellpadding="5px" width="650">
                <tbody>
                <tr>
                    <td>技术领域</td>
                    <td colspan="5">'.@$new_data->text1.'</td>
                </tr>
                <tr>
                    <td>获得知识产权数量(件)</td>
                    <td>Ⅰ类</td>
                    <td>'.@$new_data->text2.'</td>
                    <td>ⅠⅠ类</td>
                    <td colspan="2">'.@$new_data->text3.'</td>
                </tr>
                <tr>
                    <td>人力资源情况（人）</td>
                    <td>职工总数</td>
                    <td>'.@$new_data->text4.'</td>
                    <td>科技人员数</td>
                    <td colspan="2">'.@$new_data->text5.'</td>
                </tr>
                <tr>
                    <td rowspan="4">近三年经营情况（万元）</td>
                    <td>年度种类</td>
                    <td>净资产</td>
                    <td>销售收入</td>
                    <td colspan="2">利润总额</td>
                </tr>
                <tr>
                    <td>第一年</td>
                    <td>'.@$new_data->text6.'</td>
                    <td>'.@$new_data->text7.'</td>
                    <td colspan="2">'.@$new_data->text8.'</td>
                </tr>
                <tr>
                    <td>第二年</td>
                    <td>'.@$new_data->text9.'</td>
                    <td>'.@$new_data->text10.'</td>
                    <td colspan="2">'.@$new_data->text11.'</td>
                </tr>
                <tr>
                    <td>第三年</td>
                    <td>'.@$new_data->text12.'</td>
                    <td>'.@$new_data->text13.'</td>
                    <td colspan="2">'.@$new_data->text14.'</td>
                </tr>
                <tr>
                    <td rowspan="2">近三年研究开发费用总额（万元）</td>
                    <td rowspan="2" colspan="2">'.@$new_data->text15.'</td>
                    <td rowspan="2">其中</td>
                    <td>在中国境内研发费用总额（万元）</td>
                    <td colspan="2">'.@$new_data->text16.'</td>
                </tr>
                <tr>
                    <td>基础研究投入费用总额（万元）</td>
                    <td colspan="2">'.@$new_data->text17.'</td>
                </tr>
                <tr>
                    <td colspan="2">近一年企业总收入（万元）</td>
                    <td colspan="4">'.@$new_data->text18.'</td>
                </tr>
                <tr>
                    <td colspan="2">近一年高新技术产品（服务）收入（万元）</td>
                    <td colspan="4">'.@$new_data->text19.'</td>
                </tr>
                <tr>
                    <td colspan="2">申请认定前一年内是否发生过重大安全、重大质量事故或严重环境违法行为</td>
                    <td colspan="4">
                        <label><input type="radio" disabled v-model="radio1" '.@$radio1_one.' value="1">是</label>
                        <label><input type="radio" disabled v-model="radio1" '.@$radio1_two.' value="0">否</label>
                    </td>
                </tr>
                </tbody>
            </table>
        </div>
        ';

            return $html;

    }



}
